class PesquisarPredioController < ApplicationController
	
	def index		
		@predios = Predio.searchSiglaNome(params[:string])
	    respond_to do |format|
	      format.html # show.html.erb
	      format.json { render json: @predio }
	    end
	end

	def showPredio
		@predio = Predio.find(:first, :conditions => ["id = ?",params[:predio_id]])
	end

end
